package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class WinningrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public WinningrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWrnoIsNull() {
            addCriterion("wrno is null");
            return (Criteria) this;
        }

        public Criteria andWrnoIsNotNull() {
            addCriterion("wrno is not null");
            return (Criteria) this;
        }

        public Criteria andWrnoEqualTo(String value) {
            addCriterion("wrno =", value, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoNotEqualTo(String value) {
            addCriterion("wrno <>", value, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoGreaterThan(String value) {
            addCriterion("wrno >", value, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoGreaterThanOrEqualTo(String value) {
            addCriterion("wrno >=", value, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoLessThan(String value) {
            addCriterion("wrno <", value, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoLessThanOrEqualTo(String value) {
            addCriterion("wrno <=", value, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoLike(String value) {
            addCriterion("wrno like", value, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoNotLike(String value) {
            addCriterion("wrno not like", value, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoIn(List<String> values) {
            addCriterion("wrno in", values, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoNotIn(List<String> values) {
            addCriterion("wrno not in", values, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoBetween(String value1, String value2) {
            addCriterion("wrno between", value1, value2, "wrno");
            return (Criteria) this;
        }

        public Criteria andWrnoNotBetween(String value1, String value2) {
            addCriterion("wrno not between", value1, value2, "wrno");
            return (Criteria) this;
        }

        public Criteria andPnoIsNull() {
            addCriterion("pno is null");
            return (Criteria) this;
        }

        public Criteria andPnoIsNotNull() {
            addCriterion("pno is not null");
            return (Criteria) this;
        }

        public Criteria andPnoEqualTo(String value) {
            addCriterion("pno =", value, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoNotEqualTo(String value) {
            addCriterion("pno <>", value, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoGreaterThan(String value) {
            addCriterion("pno >", value, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoGreaterThanOrEqualTo(String value) {
            addCriterion("pno >=", value, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoLessThan(String value) {
            addCriterion("pno <", value, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoLessThanOrEqualTo(String value) {
            addCriterion("pno <=", value, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoLike(String value) {
            addCriterion("pno like", value, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoNotLike(String value) {
            addCriterion("pno not like", value, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoIn(List<String> values) {
            addCriterion("pno in", values, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoNotIn(List<String> values) {
            addCriterion("pno not in", values, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoBetween(String value1, String value2) {
            addCriterion("pno between", value1, value2, "pno");
            return (Criteria) this;
        }

        public Criteria andPnoNotBetween(String value1, String value2) {
            addCriterion("pno not between", value1, value2, "pno");
            return (Criteria) this;
        }

        public Criteria andArnoIsNull() {
            addCriterion("arno is null");
            return (Criteria) this;
        }

        public Criteria andArnoIsNotNull() {
            addCriterion("arno is not null");
            return (Criteria) this;
        }

        public Criteria andArnoEqualTo(String value) {
            addCriterion("arno =", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotEqualTo(String value) {
            addCriterion("arno <>", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoGreaterThan(String value) {
            addCriterion("arno >", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoGreaterThanOrEqualTo(String value) {
            addCriterion("arno >=", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLessThan(String value) {
            addCriterion("arno <", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLessThanOrEqualTo(String value) {
            addCriterion("arno <=", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLike(String value) {
            addCriterion("arno like", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotLike(String value) {
            addCriterion("arno not like", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoIn(List<String> values) {
            addCriterion("arno in", values, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotIn(List<String> values) {
            addCriterion("arno not in", values, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoBetween(String value1, String value2) {
            addCriterion("arno between", value1, value2, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotBetween(String value1, String value2) {
            addCriterion("arno not between", value1, value2, "arno");
            return (Criteria) this;
        }

        public Criteria andWrnameIsNull() {
            addCriterion("wrName is null");
            return (Criteria) this;
        }

        public Criteria andWrnameIsNotNull() {
            addCriterion("wrName is not null");
            return (Criteria) this;
        }

        public Criteria andWrnameEqualTo(String value) {
            addCriterion("wrName =", value, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameNotEqualTo(String value) {
            addCriterion("wrName <>", value, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameGreaterThan(String value) {
            addCriterion("wrName >", value, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameGreaterThanOrEqualTo(String value) {
            addCriterion("wrName >=", value, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameLessThan(String value) {
            addCriterion("wrName <", value, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameLessThanOrEqualTo(String value) {
            addCriterion("wrName <=", value, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameLike(String value) {
            addCriterion("wrName like", value, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameNotLike(String value) {
            addCriterion("wrName not like", value, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameIn(List<String> values) {
            addCriterion("wrName in", values, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameNotIn(List<String> values) {
            addCriterion("wrName not in", values, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameBetween(String value1, String value2) {
            addCriterion("wrName between", value1, value2, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnameNotBetween(String value1, String value2) {
            addCriterion("wrName not between", value1, value2, "wrname");
            return (Criteria) this;
        }

        public Criteria andWrnumberIsNull() {
            addCriterion("wrNumber is null");
            return (Criteria) this;
        }

        public Criteria andWrnumberIsNotNull() {
            addCriterion("wrNumber is not null");
            return (Criteria) this;
        }

        public Criteria andWrnumberEqualTo(String value) {
            addCriterion("wrNumber =", value, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberNotEqualTo(String value) {
            addCriterion("wrNumber <>", value, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberGreaterThan(String value) {
            addCriterion("wrNumber >", value, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberGreaterThanOrEqualTo(String value) {
            addCriterion("wrNumber >=", value, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberLessThan(String value) {
            addCriterion("wrNumber <", value, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberLessThanOrEqualTo(String value) {
            addCriterion("wrNumber <=", value, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberLike(String value) {
            addCriterion("wrNumber like", value, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberNotLike(String value) {
            addCriterion("wrNumber not like", value, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberIn(List<String> values) {
            addCriterion("wrNumber in", values, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberNotIn(List<String> values) {
            addCriterion("wrNumber not in", values, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberBetween(String value1, String value2) {
            addCriterion("wrNumber between", value1, value2, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrnumberNotBetween(String value1, String value2) {
            addCriterion("wrNumber not between", value1, value2, "wrnumber");
            return (Criteria) this;
        }

        public Criteria andWrdescribeIsNull() {
            addCriterion("wrDescribe is null");
            return (Criteria) this;
        }

        public Criteria andWrdescribeIsNotNull() {
            addCriterion("wrDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andWrdescribeEqualTo(String value) {
            addCriterion("wrDescribe =", value, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeNotEqualTo(String value) {
            addCriterion("wrDescribe <>", value, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeGreaterThan(String value) {
            addCriterion("wrDescribe >", value, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("wrDescribe >=", value, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeLessThan(String value) {
            addCriterion("wrDescribe <", value, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeLessThanOrEqualTo(String value) {
            addCriterion("wrDescribe <=", value, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeLike(String value) {
            addCriterion("wrDescribe like", value, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeNotLike(String value) {
            addCriterion("wrDescribe not like", value, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeIn(List<String> values) {
            addCriterion("wrDescribe in", values, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeNotIn(List<String> values) {
            addCriterion("wrDescribe not in", values, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeBetween(String value1, String value2) {
            addCriterion("wrDescribe between", value1, value2, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrdescribeNotBetween(String value1, String value2) {
            addCriterion("wrDescribe not between", value1, value2, "wrdescribe");
            return (Criteria) this;
        }

        public Criteria andWrstateIsNull() {
            addCriterion("wrState is null");
            return (Criteria) this;
        }

        public Criteria andWrstateIsNotNull() {
            addCriterion("wrState is not null");
            return (Criteria) this;
        }

        public Criteria andWrstateEqualTo(Integer value) {
            addCriterion("wrState =", value, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateNotEqualTo(Integer value) {
            addCriterion("wrState <>", value, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateGreaterThan(Integer value) {
            addCriterion("wrState >", value, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("wrState >=", value, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateLessThan(Integer value) {
            addCriterion("wrState <", value, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateLessThanOrEqualTo(Integer value) {
            addCriterion("wrState <=", value, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateIn(List<Integer> values) {
            addCriterion("wrState in", values, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateNotIn(List<Integer> values) {
            addCriterion("wrState not in", values, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateBetween(Integer value1, Integer value2) {
            addCriterion("wrState between", value1, value2, "wrstate");
            return (Criteria) this;
        }

        public Criteria andWrstateNotBetween(Integer value1, Integer value2) {
            addCriterion("wrState not between", value1, value2, "wrstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}